# -*- coding: UTF-8 -*-

from django.contrib import admin
from appBook.models import mBook, mComment

# Register your models here.

class mBookAdmin(admin.ModelAdmin):
	list_display = ('name','author','isbn','image','available','timestamp')
	readonly_fields = ('timestamp',)

class mCommentAdmin(admin.ModelAdmin):
	list_display = ('book','comment','reader_name','available','timestamp')
	readonly_fields = ('timestamp',)

admin.site.register(mBook,mBookAdmin)
admin.site.register(mComment,mCommentAdmin)

admin.site.site_header = '推荐一本书'
admin.site.site_title = '推荐一本书'